import bus from "@/bus";
import { renderButton } from '@/util';
let data = {
  status: 'pass',
  totalItem: 1,
  pageSize: window.$pageSize,
  currentPage: 1,
  columns: [ {
      title: '政策名称',
      key: 'name',
      align: 'left',
      minwidth: 200
    },
    {
      title: '创建时间',
      key: 'createDate',
      align: 'left',
      minwidth: 150
    },
    {
      title: '操作',
      align: 'right',
      minwidth: 200,
      render: (h, params) => {
        return (
          <div>
            { renderButton(h, { text: '编辑', type: 'primary',},
              ()=>{ bus.$emit("onEdit", params.row.id)})}
            { renderButton(h, { text: '删除', type: 'warning' },
              ()=>{ bus.$emit("onDelete",  params.row.id, params.row.name, params.index)})}
          </div>
        )
      }
    }
  ],
  data: []
}
export default data;
